# 定义一个新的类，支持以为操作符的运算：


class Nstr(str):

    def __lshift__(self, other):
        return self[other:] + self[:other]

    def __rshift__(self, other):
        return self[-other:] + self[:-other]


if __name__ == "__main__":
    a = Nstr("I love FishC.com!")
    print(a << 3)
    print(a >> 3)